<%@ Page Language="VB" MasterPageFile="~/HelpDesk.master" AutoEventWireup="false"
    CodeFile="UtilisateursForm.aspx.vb" Inherits="Admin_UtilisateursForm" Title="Utilisateurs"
    Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" ID="LabelErreur" ForeColor="Red" meta:resourcekey="LabelErreurResource1"></asp:Label>
    <asp:Panel ID="PanelInserer" runat="server" meta:resourcekey="PanelInsererResource1">
        <h2>
            <asp:Literal ID="Literal1" runat="server" meta:resourcekey="Literal1Resource1" Text="Nouvel utilisateur"></asp:Literal>
        </h2>
        <div class="formulaire">
            <p>
                <label>
                    <asp:Literal ID="Literal2" runat="server" meta:resourcekey="Literal2Resource1" Text="<%$ Resources:Users, UserClient %>"></asp:Literal>
                </label>
                <asp:SqlDataSource ID="SqlClients" runat="server" ConnectionString="<%$ ConnectionStrings:HelpDeskCS %>"
                    SelectCommand="SELECT [entreprise_id], [entreprise_nom] FROM [Entreprise] ORDER BY [entreprise_nom]">
                </asp:SqlDataSource>
                <asp:DropDownList ID="DropDownListClients" runat="server" DataSourceID="SqlClients"
                    DataTextField="entreprise_nom" DataValueField="entreprise_id" AppendDataBoundItems="True"
                    meta:resourcekey="DropDownListClientsResource1">
                    <asp:ListItem meta:resourcekey="ListItemResource1"></asp:ListItem>
                </asp:DropDownList>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal3" runat="server" meta:resourcekey="Literal3Resource1" Text="<%$ Resources:Users, UserCompleteName %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxNom" runat="server" Columns="25" meta:resourcekey="TextBoxNomResource1"></asp:TextBox>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal4" runat="server" meta:resourcekey="Literal4Resource1" Text="<%$ Resources:Users, UserLogin %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxLogin" runat="server" Columns="10" meta:resourcekey="TextBoxLoginResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVLogin" runat="server" ControlToValidate="TextBoxLogin"
                    ErrorMessage="*" meta:resourcekey="RFVLoginResource1"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal5" runat="server" meta:resourcekey="Literal5Resource1" Text="<%$ Resources:Users, UserPass %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxPasse" runat="server" Columns="10" meta:resourcekey="TextBoxPasseResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVPasse" runat="server" ControlToValidate="TextBoxPasse"
                    ErrorMessage="*" meta:resourcekey="RFVPasseResource1"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal6" runat="server" meta:resourcekey="Literal6Resource1" Text="<%$ Resources:Users, UserEmail %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxEmail" runat="server" Columns="40" meta:resourcekey="TextBoxEmailResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVEmail" runat="server" ControlToValidate="TextBoxEmail"
                    ErrorMessage="*" meta:resourcekey="RFVEmailResource1"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal7" runat="server" meta:resourcekey="Literal7Resource1" Text="<%$ Resources:Users, UserAdmin %>"></asp:Literal>
                </label>
                <asp:CheckBox runat="server" ID="CheckBoxAdmin" meta:resourcekey="CheckBoxAdminResource1" />
            </p>
            <p>
                <label>
                    &nbsp;</label>
                <asp:Button ID="ButtonNouvelUtilisateur" runat="server" Text="<%$ Resources:WebResource, ButtonSave %>"
                    meta:resourcekey="ButtonNouvelUtilisateurResource1" />
                <a href="Utilisateurs.aspx">
                    <asp:Literal ID="Literal8" runat="server" meta:resourcekey="Literal8Resource1" Text="<%$ Resources:WebResource, ButtonCancel %>"></asp:Literal>
                </a>
            </p>
        </div>
    </asp:Panel>
    <asp:Panel ID="PanelModifier" runat="server" Visible="False" meta:resourcekey="PanelModifierResource1">
        <h1>
            <asp:Literal ID="Literal9" runat="server" meta:resourcekey="Literal9Resource1" Text="Modifier l'utilisateur"></asp:Literal>
        </h1>
        <div class="formulaire">
            <p>
                <label>
                    <asp:Literal ID="Literal10" runat="server" meta:resourcekey="Literal10Resource1"
                        Text="<%$ Resources:Users, UserClient %>"></asp:Literal>
                </label>
                <asp:SqlDataSource ID="SqlModifClient" runat="server" ConnectionString="<%$ ConnectionStrings:HelpDeskCS %>"
                    SelectCommand="SELECT [entreprise_id], [entreprise_nom] FROM [Entreprise] ORDER BY [entreprise_nom]">
                </asp:SqlDataSource>
                <asp:DropDownList ID="DropDownListModifClient" runat="server" DataSourceID="SqlClients"
                    DataTextField="entreprise_nom" DataValueField="entreprise_id" AppendDataBoundItems="True"
                    meta:resourcekey="DropDownListModifClientResource1">
                    <asp:ListItem meta:resourcekey="ListItemResource2"></asp:ListItem>
                </asp:DropDownList>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal11" runat="server" meta:resourcekey="Literal11Resource1"
                        Text="<%$ Resources:Users, UserCompleteName %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxModifNom" runat="server" Columns="25" meta:resourcekey="TextBoxModifNomResource1"></asp:TextBox>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal12" runat="server" meta:resourcekey="Literal12Resource1"
                        Text="<%$ Resources:Users, UserLogin %>"></asp:Literal>
                </label>
                <asp:Label ID="LabelLogin" runat="server" meta:resourcekey="LabelLoginResource1"></asp:Label>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal13" runat="server" meta:resourcekey="Literal13Resource1"
                        Text="<%$ Resources:Users, UserPass %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxModifPasse" runat="server" Columns="10" meta:resourcekey="TextBoxModifPasseResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxModifPasse"
                    ErrorMessage="*" meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal14" runat="server" meta:resourcekey="Literal14Resource1"
                        Text="<%$ Resources:Users, UserEmail %>"></asp:Literal>
                </label>
                <asp:TextBox ID="TextBoxModifEmail" runat="server" Columns="40" meta:resourcekey="TextBoxModifEmailResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxModifEmail"
                    ErrorMessage="*" meta:resourcekey="RequiredFieldValidator3Resource1"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>
                    <asp:Literal ID="Literal15" runat="server" meta:resourcekey="Literal15Resource1"
                        Text="<%$ Resources:Users, UserAdmin %>"></asp:Literal>
                </label>
                <asp:CheckBox runat="server" ID="CheckBoxModifAdmin" meta:resourcekey="CheckBoxModifAdminResource1" />
            </p>
            <p>
                <label>
                    &nbsp;</label>
                <asp:Button ID="ButtonModifierUtilisateur" runat="server" Text="<%$ Resources:WebResource, ButtonSave %>"
                    meta:resourcekey="ButtonModifierUtilisateurResource1" />
                <a href="Utilisateurs.aspx">
                    <asp:Literal ID="Literal16" runat="server" meta:resourcekey="Literal16Resource1"
                        Text="<%$ Resources:WebResource, ButtonCancel %>"></asp:Literal>
                </a>
            </p>
            <p align="right">
                <asp:LinkButton ID="LinkButtonSupprimer" runat="server" OnClientClick="return confirm('Voulez-vous vraiment supprimer cet utilisateur ?')"
                    meta:resourcekey="LinkButtonSupprimerResource1">
                  <img src="../Images/Icones/key_delete.png" alt="" />
                  Supprimer</asp:LinkButton>
            </p>
        </div>
    </asp:Panel>
</asp:Content>
